﻿using RoomMgr.Models.Rooms;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RoomMgr.Models
{
    public class EFDataContext : DbContext
    {
        public static EFDataContext instance = new EFDataContext();

        public EFDataContext()
            : base("RoomMgr")
        { 
            
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            // base.OnModelCreating(modelBuilder);
        }

        public DbSet<Room> Rooms { get; set; }
        public DbSet<RoomType> RoomTypes { get; set; }

    }
}
